﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace HpxWMS_Api.Models
{
    /// <summary>
    /// 前端登录要用到的类
    /// </summary>
    public class Li
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage="用户名是必须的")]
        [MinLength(5,ErrorMessage="用户名长度必须大于5")]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage="密码不能为空")]
        [MinLength(6, ErrorMessage = "密码长度必须大于6")]
        public string UserPwd { get; set; }
    }
}